﻿using famails.App_Code.source.dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace famails.App_Code.source.bus
{
    public class CM_CustomerCareAutoBUS
    {
        CM_CustomerCareAutoDAO dao = new CM_CustomerCareAutoDAO();
        internal System.Data.DataTable GetByID(int ID, int userid)
        {
            return dao.GetByID(ID, userid);
        }

        internal void Edit(global::famails.dto.CM_CustomerCareAutoDTO dto)
        {
            dao.Edit(dto);
        }

        internal int Add(global::famails.dto.CM_CustomerCareAutoDTO dto)
        {
            return dao.Add(dto);
        }

        internal void Delete(int CustomerCareAutoId)
        {
            dao.Delete(CustomerCareAutoId);
        }

        internal System.Data.DataTable Search(string subject, int c_group, int p_group, string from, string to, int userid)
        {
            return dao.Search(subject, c_group, p_group, from, to, userid);
        }

        internal System.Data.DataTable GetReportById(int Id, int UserID)
        {
            return dao.GetReportById(Id, UserID);
        }

        internal void addSendMailFromCustomerCareAuto(int CustomerCareAutoID, int UserID)
        {
            dao.addSendMailFromCustomerCareAuto(CustomerCareAutoID, UserID);
        }
        internal void addSendMailFromCustomerCareAutoByCustomer(decimal CustomerID, int UserID)
        {
            dao.addSendMailFromCustomerCareAutoByCustomer(CustomerID, UserID);
        }

        internal System.Data.DataTable GetOpenMailByContentID(object contentid)
        {
            return dao.GetOpenMailByContentID(contentid);
        }
    }
}